package cn.mothin.action.common;

import org.springframework.beans.factory.annotation.Autowired;

import cn.mothin.frame.core.annotation.NeedLogon;
import cn.mothin.frame.core.base.BaseAction;
import cn.mothin.service.common.UserHelperService;
import cn.mothin.vo.common.UserHelperForm;

@SuppressWarnings("serial")
public class UserHelperAction extends BaseAction {
	private UserHelperForm userHelperForm = new UserHelperForm();
	@Autowired
	private UserHelperService userHelperService;

	@Override
	public Object getModel() {
		return userHelperForm;
	}
	
	@NeedLogon
	public String queryOperation() {
		return renderJson(userHelperService.queryOperation(userHelperForm,getBasePath()));
	}
	
	@NeedLogon
	public String checkPermission(){
		return renderJson(userHelperService.checkPermission(userHelperForm));
	}
}
